-- GENERATED SPELL FOR [Malfunctioning Reaver] --


function spell0_8981(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_8981', 612, 1)
end

function spell1_8981(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8981', 631, 1)
end

function Sorts_8981(pUnit, Event)
local choix_sorts_8981 = math.random(0, 1)
if choix_sorts_8981 == 0 then
pUnit:RegisterEvent('spell0_8981', 1, 1)
end
if choix_sorts_8981 == 1 then
pUnit:RegisterEvent('spell1_8981', 1, 1)
end
end

function mob8981_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8981', math.random(1500, 3000), 1)
end

function mob8981_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8981_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8981_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8981, 1, 'mob8981_Action')
RegisterUnitEvent(8981, 2, 'mob8981_Leave')
RegisterUnitEvent(8981, 3, 'mob8981_Kill')
RegisterUnitEvent(8981, 4, 'mob8981_Die')
